<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<link type="text/css" rel="stylesheet" href="css/dth.css" />

	<style>
</style>

</h:head>

<h:body>

	<h:panelGroup id="dlgisert">
								
									<div class="feild-input">
										<h:outputLabel value="Name"></h:outputLabel>
										<h:inputText value="#{accountBean.adminName}"
											style="width:200px;">
										</h:inputText>
									</div>
									<div class="feild-input">
										<h:outputLabel value="#{msg['login_username']}"></h:outputLabel>
										<h:inputText value="#{accountBean.userName}"
											style="width:200px;">
											<p:ajax event="keyup" update="mess_username"></p:ajax>
										</h:inputText>
									</div>
									<div class="feild-input">
										<h:outputText id="mess_username"
											value="#{accountBean.messExistUsername}"></h:outputText>
									</div>
									<div class="feild-input">
										<h:outputLabel value="#{msg['login_password']}"></h:outputLabel>
										<p:password value="#{accountBean.password}"
											style="width:200px;" />
									</div>
									<div class="feild-input">
										<h:outputLabel value="Repeat password"></h:outputLabel>
										<p:password value="#{accountBean.rePassword}"
											style="width:200px;" />
									</div>
									<div class="feild-action">
										<p:commandButton value="#{msg['btn_ok']}"
											oncomplete="dlg.hide()" action="#{accountBean.insertAdminAccount}"
											update=":mainform,:growl"></p:commandButton>
										<p:commandButton value="#{msg['btn_cancel']}"
											oncomplete="dlg.hide()"></p:commandButton>
									</div>
								</h:panelGroup>

</h:body>
</html>